//
//  NewsParser.h
//  SlowLoad
//
//  Created by Hai Nguyen on 8/28/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "News.h"

@protocol NewsParserDelegate <NSObject>

-(void) didEndGetNews:(NSMutableArray*) arrayStoreNews;

@end

@interface NewsParser : NSObject <NSXMLParserDelegate>{
	NSMutableArray *arrayNews;
	NSMutableString *currentString;
	NSObject <NewsParserDelegate> *delegate;
	NSMutableData *respondData;
	BOOL isNews;
	News *news;
}

@property (nonatomic, retain) NSMutableArray *arrayNews;
@property (nonatomic, retain) NSMutableString *currentString;
@property (nonatomic, assign) NSObject <NewsParserDelegate> *delegate;
@property (nonatomic, retain) NSMutableData *respondData;
@property (nonatomic, assign) BOOL isNews;
@property (nonatomic, retain) News *news;

-(void) getNewsFromUrl:(NSString*) rssUrl withDelegate:(id) theDelegate;

@end
